package com.lucene.mapper;

import com.lucene.model.Page;
import com.lucene.model.Project;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by zl on 2015/8/27.
 */
public interface ProjectMapper {

    Project searchByKey(Project project);
    int insertProject(Project project);
    int delProject(Project project);
    int updateProject(Project project);
    int updateProjectGroup(Project project);
    Project queryProjectById(Project project);
    int queryProjectsNum(@Param("search") String search);
    List<Project> getAllProjects();
    List<Project> queryProjects(Project project);
    List<Project> queryProjectByPage(Page page);
    List<Project> queryProjectByPageDesc(Page page, Project project);
}
